package com.codeshellme.bookmanager.service;

import com.codeshellme.bookmanager.dto.BookBorrow;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface BookBorrowService {

    PageInfo<Map<String, Object>> queryAllBookBorrows(
            String book_name, Integer type_id, Integer author_id, String status,
            Integer student_id, String student_name,
            String bdate_start, String bdate_end,
            String rdate_start, String rdate_end,
            Integer pageNum, Integer pageSize);

    int bookReturn(Integer borrowId, Integer stockId);

    int bookBorrowSave(List<BookBorrow> borrows);
}
